package net.qhzw.vip.qiyu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.qhzw.vip.qiyu.entity.UserHealthyLog;

import java.util.List;

public interface UserHealthyLogService extends IService<UserHealthyLog>{

    /***
     * 健康上报
     * @param userId
     * @param userHealthyLog
     * @return
     */
    boolean healthReport(String userId, UserHealthyLog userHealthyLog);

    /****
     * 获取每日上报列表
     * @param userId
     * @return
     */
    List<UserHealthyLog> findList(String userId);


    /***
     * 分页获取用户每日上报日志
     * @param page
     * @param userId
     * @param realName
     * @return
     */
    Page<UserHealthyLog> findByPage(Page<UserHealthyLog> page, String userId, String realName);
}
